package com.jintian.smart.kernel.security.service;

import com.jintian.smart.base.api.security.form.HeartBeatRecordQueryForm;
import com.jintian.smart.base.api.security.view.HeartBeatRecordVO;
import com.jintian.smart.kernel.core.domain.ResponseDTO;
import com.jintian.smart.kernel.security.mapper.HeartBeatRecordMapper;
import jakarta.annotation.Resource;
import lombok.extern.slf4j.Slf4j;
import org.beetl.sql.core.page.PageResult;
import org.springframework.stereotype.Service;

/**
 * 心跳记录
 */
@Slf4j
@Service
public class HeartBeatService {
    @Resource
    private HeartBeatRecordMapper heartBeatRecordMapper;

    public ResponseDTO<PageResult<HeartBeatRecordVO>> pageQuery(HeartBeatRecordQueryForm pageParam) {
        PageResult<HeartBeatRecordVO> pageResult = heartBeatRecordMapper.pageQuery(pageParam);
        return ResponseDTO.ok(pageResult);
    }
}
